package com.my.study.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: yidujun
 * @create: 2021/07/30 10:04
 */
@RestController
@RequestMapping("/test")
public class GatewayController {

    @RequestMapping("/get/{num}")
    public Object getNum(@PathVariable int num) {
        System.out.println(num);
        return num;
    }

}
